/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.borrow.dao;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.borrow.entity.BorrowCount;
import com.thinkgem.jeesite.modules.borrow.entity.BorrowCountByUserRoles;
import com.thinkgem.jeesite.modules.borrow.entity.BorrowLog;

import java.util.List;


/**
 * 借阅日志DAO接口
 *
 * @author ThinkGem
 * @version 2014-05-16
 */
@MyBatisDao
public interface BorrowLogDao extends CrudDao<BorrowLog>{

    BorrowCount findCurrentCount(BorrowCount borrowCount);

    BorrowCount findReaderNum(BorrowCount borrowCount);

    //按照读者角色查询每个角色的某个时间区间的借阅册数
    List<BorrowCountByUserRoles> findBorrowCountByUserRoles(BorrowCountByUserRoles borrowCountByUserRoles);
}
